package com.ruoyi.wcf.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wcf.mapper.WcfDisposeShopSizeMapper;
import com.ruoyi.wcf.domain.WcfDisposeShopSize;
import com.ruoyi.wcf.service.IWcfDisposeShopSizeService;

/**
 * 客户管理-店铺面积设置Service业务层处理
 *
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class WcfDisposeShopSizeServiceImpl implements IWcfDisposeShopSizeService
{
    @Autowired
    private WcfDisposeShopSizeMapper wcfDisposeShopSizeMapper;

    /**
     * 查询客户管理-店铺面积设置
     *
     * @param id 客户管理-店铺面积设置主键
     * @return 客户管理-店铺面积设置
     */
    @Override
    public WcfDisposeShopSize selectWcfDisposeShopSizeById(Long id)
    {
        return wcfDisposeShopSizeMapper.selectWcfDisposeShopSizeById(id);
    }

    /**
     * 查询客户管理-店铺面积设置列表
     *
     * @param wcfDisposeShopSize 客户管理-店铺面积设置
     * @return 客户管理-店铺面积设置
     */
    @Override
    public List<WcfDisposeShopSize> selectWcfDisposeShopSizeList(WcfDisposeShopSize wcfDisposeShopSize)
    {
        return wcfDisposeShopSizeMapper.selectWcfDisposeShopSizeList(wcfDisposeShopSize);
    }

    /**
     * 新增客户管理-店铺面积设置
     *
     * @param wcfDisposeShopSize 客户管理-店铺面积设置
     * @return 结果
     */
    @Override
    public int insertWcfDisposeShopSize(WcfDisposeShopSize wcfDisposeShopSize)
    {
        wcfDisposeShopSize.setCreateTime(DateUtils.getNowDate());
        return wcfDisposeShopSizeMapper.insertWcfDisposeShopSize(wcfDisposeShopSize);
    }

    /**
     * 修改客户管理-店铺面积设置
     *
     * @param wcfDisposeShopSize 客户管理-店铺面积设置
     * @return 结果
     */
    @Override
    public int updateWcfDisposeShopSize(WcfDisposeShopSize wcfDisposeShopSize)
    {
        return wcfDisposeShopSizeMapper.updateWcfDisposeShopSize(wcfDisposeShopSize);
    }

    /**
     * 批量删除客户管理-店铺面积设置
     *
     * @param ids 需要删除的客户管理-店铺面积设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeShopSizeByIds(Long[] ids)
    {
        return wcfDisposeShopSizeMapper.deleteWcfDisposeShopSizeByIds(ids);
    }

    /**
     * 删除客户管理-店铺面积设置信息
     *
     * @param id 客户管理-店铺面积设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeShopSizeById(Long id)
    {
        return wcfDisposeShopSizeMapper.deleteWcfDisposeShopSizeById(id);
    }
}
